package com.zk.nakedfowl.barcodeMachineGrantManager.pojo;

import com.zk.nakedfowl.basicData.pojo.House;
import com.zk.nakedfowl.basicData.pojo.Machine;
import com.zk.nakedfowl.powerManager.pojo.User;

import javax.persistence.*;
import java.io.Serializable;
/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="barcode_machine_grant")
public class MachineGrant implements Serializable{

	@Id
	private String id;//


	private String barcodeMachineId;//脚标机编号
	private String stallsId;//发放档口编号
	private java.util.Date grantDate;//发放时间
	private String grantPerson;//发放人员id
	private String receivePerson;//领取人员id
	private Double deposit;//押金
	private String agreementNumber;//纸质协议编号
	private String createBy;//屠宰场id
	private java.util.Date createDate;//创建时间

	@ManyToOne(targetEntity = User.class,fetch = FetchType.LAZY)
	@JoinColumn(name = "grantPerson",referencedColumnName = "id")
	private User user;

	@ManyToOne(targetEntity = House.class,fetch = FetchType.LAZY)
	@JoinColumn(name = "createBy",referencedColumnName = "id")
	private House house;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getBarcodeMachineId() {		
		return barcodeMachineId;
	}
	public void setBarcodeMachineId(String barcodeMachineId) {
		this.barcodeMachineId = barcodeMachineId;
	}

	public String getStallsId() {		
		return stallsId;
	}
	public void setStallsId(String stallsId) {
		this.stallsId = stallsId;
	}

	public java.util.Date getGrantDate() {		
		return grantDate;
	}
	public void setGrantDate(java.util.Date grantDate) {
		this.grantDate = grantDate;
	}

	public String getGrantPerson() {		
		return grantPerson;
	}
	public void setGrantPerson(String grantPerson) {
		this.grantPerson = grantPerson;
	}

	public String getReceivePerson() {		
		return receivePerson;
	}
	public void setReceivePerson(String receivePerson) {
		this.receivePerson = receivePerson;
	}

	public Double getDeposit() {		
		return deposit;
	}
	public void setDeposit(Double deposit) {
		this.deposit = deposit;
	}

	public String getAgreementNumber() {		
		return agreementNumber;
	}
	public void setAgreementNumber(String agreementNumber) {
		this.agreementNumber = agreementNumber;
	}

	public String getCreateBy() {		
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public java.util.Date getCreateDate() {		
		return createDate;
	}
	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}


	
}
